<!DOCTYPE html>
<html>
    <head>
        <title><?php echo $this->pageTitle; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <?php
        //meta data
        echo CHtml::metaTag('http://chonden.com', 'author') . "\n\t\t";
        echo CHtml::metaTag('index, follow', 'robots') . "\n\t\t";
        foreach ($this->metaData as $key => $value) {
            echo CHtml::metaTag($value, $key) . "\n\t\t";
        }
        
        //CSS
        $rootDir  = Yii::app()->params['document_root'] . 'css/';
        $cssFiles = array(
            'reset.css', 'text.css', '960.css',
            'jquery.fancybox.css', 'checkbox.css',
            'form.css', 'style.css',
        );
        foreach ($cssFiles as $file) {
            echo CHtml::cssFile($rootDir . $file) . "\n\t\t";
        }
        ?><!--[if lt IE 8]>
        <?php echo CHtml::cssFile($rootDir . 'style_ie7.css') . "\n"; ?>
        <![endif]-->
        <link rel="shortcut icon" href="<?php echo Yii::app()->params['document_root']; ?>favicon.png" type="image/x-icon">

        <?php
        $rootDir = Yii::app()->params['document_root'] . 'js/';
        $jsFiles = array(
            'jquery.min.js',
            'jquery-ui-1.10.2.custom.min.js',
            'jquery.mousewheel-3.0.6.min.js',
            'jquery.fancybox.min.js',
            'myscript.js',
        );
        foreach ($jsFiles as $file) {
            echo CHtml::scriptFile($rootDir . $file) . "\n\t\t";
        }
        ?>
    </head>
    <body>
        <?php echo $content; ?>
    </body>
</html>
